<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
  display: flex;
  flex-wrap: wrap;
  /* flex-wrap: nowrap; */
  /* flex-wrap: wrap-reverse; */
  /* flex-flow: row wrap; */
  /* justify-content: center;*/
  /*text-align: right; 做不到 */
  justify-content: right; 
  justify-content: flex-start;
  justify-content: left; 
  justify-content: flex-start;

  /* flex-direction:  column-reverse; */
  align-items: center; 
  align-items: flex-start;
  align-items: stretch;
  background-color: DodgerBlue;
  height: 800px;
}

.flex-container > div {
  background-color: #f1f1f1;
  width: 100px;
  margin: 10px;
  text-align: center;
  line-height: 500px;
  font-size: 30px;
}
</style>
</head>
<body>
<h1>flex-wrap 属性</h1>

<p>"flex-wrap: wrap;" 规定 flex 项目将在必要时进行换行：</p>

<div class="flex-container">
  <div>1</div>
  <div>2</div>
  <div>3</div>  
  <div>4</div>
  <div>5</div>
  <div>6</div>  
  <div>7</div>
  <div>8</div>
  <!-- <div>9</div>  
  <div>10</div>
  <div>11</div>
  <div>12</div>   -->
</div>

<p>Try resizing the browser window.</p>

</body>
</html>
